#!/usr/bin/env node

const cwd = process.cwd()

// 给当前程序（下方运行的是gulp）设置命令参数，相当于命令中的 --cwd process.cwd() --gulpfile require.resolve('./gulpfile.js')
process.argv.push('--cwd')
process.argv.push(cwd)
process.argv.push('--gulpfile')
process.argv.push(require.resolve('./gulpfile.js'))

require('gulp/bin/gulp');